package com.aurora.neo4j.service;

import com.aurora.neo4j.entity.RelationVo;
import com.aurora.neo4j.result.PersonOneDepthRelationVo;
import com.aurora.spider.houyuantuan.Person;
import com.aurora.spider.houyuantuan.PersonShip;
import com.aurora.star.dto.StarQueryDto;
import org.neo4j.ogm.model.Result;

import java.util.List;

/**
 * Description: <br/>
 * date: 2023/8/31 13:32<br/>
 *
 * @author jonk <br/>
 * @since JDK 1.8
 */
public interface PersonService {
    RelationVo findStarByName(String name, int deep);

    Result queryByCypher(String cql) ;

    RelationVo findStarByName(StarQueryDto dto);

    List<PersonOneDepthRelationVo> findStarOneDepthByName(StarQueryDto dto);

    void personShipEvent(PersonShip personShip);

    void saveOrUpdate(Person person);
}
